﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace WarningForeverClone.src.weapons
{
    class BlueLaser : Laser
    {
        const int damage = 10;
        const string textureName = "Textures/Weapons/blueLaser";

        static Texture2D texture;
        static Color[] textureBits;

        public BlueLaser()
        {
            if (texture == null)
            {
                if (MainGame.ContentManager != null)
                {
                    texture = MainGame.ContentManager.Load<Texture2D>(textureName);
                    textureBits = new Color[texture.Width * texture.Height];
                    texture.GetData<Color>(textureBits);
                }
            }
        }

        public override float Damage
        {
            get
            {
                return damage;
            }
        }
        public override Texture2D Texture
        {
            get { return texture; }
        }
        public override Color[] TextureData
        {
            get { return textureBits; }
        }
    }
}
